package com.chh.pddomain.rule;


import com.chh.config.exception.PdException;
import lombok.Getter;


@Getter
public class MinNumber {

    private Integer number;

    public MinNumber(Integer number){
        if (number < 1){
            throw new PdException("规则次数必须大于等于 1");
        }

        this.number = number;
    }

}
